//list链表 LinkedList双向链表
package com.itheima;

import java.util.LinkedList;

public class LinkedListDemo {
    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();

        list.add("A");
        list.add("B");
        list.add("C");
        list.add("D");
        list.add("E");

        System.out.println(list);
        String first = list.getFirst();
        System.out.println(first);

        list.removeFirst();
        System.out.println(list);
    }
}
